function load(path)
 if fs.exists(path) and not fs.isDir(path) then
  local lf = fs.open(path, "r")
  local contents = lf.readAll()
  lf.close()
  return textutils.unserialize(contents)
 else
  return nil
 end
end

function save(cTable, path)
 if fs.exists(path) then
  if fs.isDir(path) then
   return false
  end
 end
 local sf = fs.open(path, "w")
 sf.write(textutils.serialize(cTable))
 sf.close()
 return true
end